import React, { PropTypes } from 'react';
import { Alert } from 'react-bootstrap';

class AlertMessage extends React.Component {

  static propTypes = {
    message: PropTypes.string.isRequired,
    stype: PropTypes.string,
  }

  static defaultProps = {
    style: 'danger',
  }

  render() {
    return (
      <Alert bsStyle={this.props.style}>
        {message}
      </Alert>
    );
  }
}

export default AlertMessage;
